const Router = require("koa-router");

const userRouter = new Router({
  prefix: "/user",
});

userRouter.get("/", async (ctx, next) => {
  ctx.body = "Lucas";
});

userRouter.post("/", async (ctx, next) => {
  let username = ctx.request.body.username;
  ctx.body = {
    username,
  };
});

module.exports =  userRouter;
